﻿using System;
using System.Collections.Generic;
using L.Basic.Authority.Models;

namespace L.Basic.Authority.Services
{
    public interface IAuthenticationService
    {
        UserLogin GetLoginInfo(string userId);
        void UpdateLoginInfo(UserLogin userLogin, string loginIp, DateTime loginTime);
        void UpdateLoginInfo(string userId, string loginIp, DateTime loginTime);
        bool Login(string loginName, string password,out Context.Context context);
        IList<ModulePermission> GetModulePermission(IList<Role> roles); 
        void Logout();
        bool ChangePassword(string loginName, string oldPassword, string newPassword);
    }
}
